package com.fox.stock.mapper;

import com.fox.stock.pojo.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 20555
* @description 针对表【sys_permission(权限表（菜单）)】的数据库操作Mapper
* @createDate 2025-05-18 16:51:05
* @Entity com.fox.stock.pojo.entity.SysPermission
*/
public interface SysPermissionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    List<SysPermission> getAllPermission();

    List<Map<String, Object>> getAllPermissionIgnore3();

    List<Long> selectSamePidAndId(@Param("permissionId") Long permissionId);

    int deleteByPrimaryKeyBatch(@Param("list") List<Long> list);
}
